package com.sren.initializrstart.service.impl;

import com.sren.initializrstart.service.WeatherDataService;
import com.sren.initializrstart.service.WeatherReportService;
import com.sren.initializrstart.vo.Weather;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author sren
 * @create 2018-12-10 上午11:08
 **/

@Service
public class WeatherReportServiceImpl implements WeatherReportService {

    @Autowired
    private WeatherDataService weatherDataService;

    @Override
    public Weather getDataByCityId(String cityId) {
        return weatherDataService.getDataByCityId(cityId).getData();
    }
}
